<template>
  <div>
       <mc-switch v-model="form.userName" mc-allow-null></mc-switch>
       <el-button @click="print">打印</el-button>
       <el-button @click="change">改变</el-button>
  </div>
</template>

<script>
import McSwitch from "./components/McSwitch";
export default {
    data(){
      return {
        form:{

        }
      }
    },
    components:{
      McSwitch,
    },
    methods:{
        print(){
            console.log(this.form)
        },
        change(){
            //this.form.userName = false;
            this.form = {};
        }
    }
}
</script>

<style>

</style>
